import math


def get(n):
    num = 1  # 初始化，当n无法分解时时就只有f(1)=1
    i = 2
    for i in range(2, math.ceil(n ** 0.5)):  # i**i<n
        if n % i == 0:
            num += get(i) + get(n // i)  # f(n)=f(i）+f(n/i)
    if i ** i == n:
        num += get(i)
    return num


n = int(input("输入n:"))
print(get(n))
